﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using YJKDimensionModel.DetailIndex.Manager;

namespace YJKDimensionModel.DetailIndex
{
	[Transaction(TransactionMode.Manual)]
	internal class CmdDetailIndex : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			DetailIndexManger detailIndexManger = new DetailIndexManger(commandData);
			detailIndexManger.Create();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
